package com.szzg10.pattern.state;

public class CoinState implements State {

	private Machine machine;
	
	public CoinState(Machine machine) {
		this.machine = machine;
	}

	@Override
	public void insert() {
		System.out.println("No insert!!!");
	}

	@Override
	public void refund() {
		System.out.println("Refund!!!");
		machine.setState(machine.getNoCoinState());
	}

	@Override
	public void turn() {
		System.out.println("Turn!!!");
		machine.setState(machine.getOutSugerState());
	}
	
	
	public void out() {
		System.out.println("No out!!!");
	}
}
